<?php

class NewWikiPageForm extends sfForm
{
    public function configure()
    {
        $this->setWidgets( array (
			'content'	=> new sfWidgetFormTextarea( array (), array ('class'=>'wikiContentInput')),
        	'comment'	=> new sfWidgetFormInput( array (), array ('class'=>'wikiCommentInput'))
        ));
		
		$this->setValidators(array (
			'content'	=> new sfValidatorString(array('min_length' => 10)),
			'comment'	=> new sfValidatorString(array('max_length' => 500, 'required' => false))
		));

        $this->widgetSchema->setNameFormat('wikiPage[%s]');
    }
}

?>
